/**
 * Copyright 2008 Adam Ruggles.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package kiff.service;

import kiff.entity.User;
import kiff.exception.ServiceLayerException;

/**
 * Interface for the Installation Service.
 * @author Adam
 * @version $Id: InstallService.java 63 2008-11-03 07:20:48Z a.ruggles $
 * 
 * Created on Oct 21, 2008 at 01:04:47 PM 
 */
public interface InstallService {

	/**
	 * Runs an installation script to create default settings, roles, and the forum administrator.
	 * @param administrator The transient administrative user, that will be created after the installation.
	 * @param settings A list of setting name and values. (ex. "key", "value", "key2", "value2").
	 * @throws ServiceLayerException If an error occurs while installing the forums.
	 */
	void install(User administrator, String ... settings) throws ServiceLayerException;

}
